package com.xziying.appstore.http;

import java.util.Map;

/**
 * ParameterMap
 *
 * @author : xziying
 * @create : 2021-03-20 16:31
 */
public class ParameterMap {
    Map<String, String[]> parameterMap;

    public ParameterMap(Map<String, String[]> parameterMap){
        this.parameterMap = parameterMap;
    }

    public String getParameter(String s){
        String[] strings = parameterMap.get(s);
        if (strings == null || strings.length != 1){
            return "";
        }
        return strings[0];
    }
}
